package com.personal.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TEquipmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TEquipmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andEquipidIsNull() {
            addCriterion("equipId is null");
            return (Criteria) this;
        }

        public Criteria andEquipidIsNotNull() {
            addCriterion("equipId is not null");
            return (Criteria) this;
        }

        public Criteria andEquipidEqualTo(Integer value) {
            addCriterion("equipId =", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidNotEqualTo(Integer value) {
            addCriterion("equipId <>", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidGreaterThan(Integer value) {
            addCriterion("equipId >", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidGreaterThanOrEqualTo(Integer value) {
            addCriterion("equipId >=", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidLessThan(Integer value) {
            addCriterion("equipId <", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidLessThanOrEqualTo(Integer value) {
            addCriterion("equipId <=", value, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidIn(List<Integer> values) {
            addCriterion("equipId in", values, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidNotIn(List<Integer> values) {
            addCriterion("equipId not in", values, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidBetween(Integer value1, Integer value2) {
            addCriterion("equipId between", value1, value2, "equipid");
            return (Criteria) this;
        }

        public Criteria andEquipidNotBetween(Integer value1, Integer value2) {
            addCriterion("equipId not between", value1, value2, "equipid");
            return (Criteria) this;
        }

        public Criteria andEqnameIsNull() {
            addCriterion("eqname is null");
            return (Criteria) this;
        }

        public Criteria andEqnameIsNotNull() {
            addCriterion("eqname is not null");
            return (Criteria) this;
        }

        public Criteria andEqnameEqualTo(String value) {
            addCriterion("eqname =", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameNotEqualTo(String value) {
            addCriterion("eqname <>", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameGreaterThan(String value) {
            addCriterion("eqname >", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameGreaterThanOrEqualTo(String value) {
            addCriterion("eqname >=", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameLessThan(String value) {
            addCriterion("eqname <", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameLessThanOrEqualTo(String value) {
            addCriterion("eqname <=", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameLike(String value) {
            addCriterion("eqname like", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameNotLike(String value) {
            addCriterion("eqname not like", value, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameIn(List<String> values) {
            addCriterion("eqname in", values, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameNotIn(List<String> values) {
            addCriterion("eqname not in", values, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameBetween(String value1, String value2) {
            addCriterion("eqname between", value1, value2, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnameNotBetween(String value1, String value2) {
            addCriterion("eqname not between", value1, value2, "eqname");
            return (Criteria) this;
        }

        public Criteria andEqnumIsNull() {
            addCriterion("eqnum is null");
            return (Criteria) this;
        }

        public Criteria andEqnumIsNotNull() {
            addCriterion("eqnum is not null");
            return (Criteria) this;
        }

        public Criteria andEqnumEqualTo(String value) {
            addCriterion("eqnum =", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumNotEqualTo(String value) {
            addCriterion("eqnum <>", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumGreaterThan(String value) {
            addCriterion("eqnum >", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumGreaterThanOrEqualTo(String value) {
            addCriterion("eqnum >=", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumLessThan(String value) {
            addCriterion("eqnum <", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumLessThanOrEqualTo(String value) {
            addCriterion("eqnum <=", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumLike(String value) {
            addCriterion("eqnum like", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumNotLike(String value) {
            addCriterion("eqnum not like", value, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumIn(List<String> values) {
            addCriterion("eqnum in", values, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumNotIn(List<String> values) {
            addCriterion("eqnum not in", values, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumBetween(String value1, String value2) {
            addCriterion("eqnum between", value1, value2, "eqnum");
            return (Criteria) this;
        }

        public Criteria andEqnumNotBetween(String value1, String value2) {
            addCriterion("eqnum not between", value1, value2, "eqnum");
            return (Criteria) this;
        }

        public Criteria andProdateIsNull() {
            addCriterion("prodate is null");
            return (Criteria) this;
        }

        public Criteria andProdateIsNotNull() {
            addCriterion("prodate is not null");
            return (Criteria) this;
        }

        public Criteria andProdateEqualTo(Date value) {
            addCriterionForJDBCDate("prodate =", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("prodate <>", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateGreaterThan(Date value) {
            addCriterionForJDBCDate("prodate >", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("prodate >=", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateLessThan(Date value) {
            addCriterionForJDBCDate("prodate <", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("prodate <=", value, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateIn(List<Date> values) {
            addCriterionForJDBCDate("prodate in", values, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("prodate not in", values, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("prodate between", value1, value2, "prodate");
            return (Criteria) this;
        }

        public Criteria andProdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("prodate not between", value1, value2, "prodate");
            return (Criteria) this;
        }

        public Criteria andPromerIsNull() {
            addCriterion("promer is null");
            return (Criteria) this;
        }

        public Criteria andPromerIsNotNull() {
            addCriterion("promer is not null");
            return (Criteria) this;
        }

        public Criteria andPromerEqualTo(String value) {
            addCriterion("promer =", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerNotEqualTo(String value) {
            addCriterion("promer <>", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerGreaterThan(String value) {
            addCriterion("promer >", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerGreaterThanOrEqualTo(String value) {
            addCriterion("promer >=", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerLessThan(String value) {
            addCriterion("promer <", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerLessThanOrEqualTo(String value) {
            addCriterion("promer <=", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerLike(String value) {
            addCriterion("promer like", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerNotLike(String value) {
            addCriterion("promer not like", value, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerIn(List<String> values) {
            addCriterion("promer in", values, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerNotIn(List<String> values) {
            addCriterion("promer not in", values, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerBetween(String value1, String value2) {
            addCriterion("promer between", value1, value2, "promer");
            return (Criteria) this;
        }

        public Criteria andPromerNotBetween(String value1, String value2) {
            addCriterion("promer not between", value1, value2, "promer");
            return (Criteria) this;
        }

        public Criteria andStockmerIsNull() {
            addCriterion("stockmer is null");
            return (Criteria) this;
        }

        public Criteria andStockmerIsNotNull() {
            addCriterion("stockmer is not null");
            return (Criteria) this;
        }

        public Criteria andStockmerEqualTo(String value) {
            addCriterion("stockmer =", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerNotEqualTo(String value) {
            addCriterion("stockmer <>", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerGreaterThan(String value) {
            addCriterion("stockmer >", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerGreaterThanOrEqualTo(String value) {
            addCriterion("stockmer >=", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerLessThan(String value) {
            addCriterion("stockmer <", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerLessThanOrEqualTo(String value) {
            addCriterion("stockmer <=", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerLike(String value) {
            addCriterion("stockmer like", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerNotLike(String value) {
            addCriterion("stockmer not like", value, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerIn(List<String> values) {
            addCriterion("stockmer in", values, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerNotIn(List<String> values) {
            addCriterion("stockmer not in", values, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerBetween(String value1, String value2) {
            addCriterion("stockmer between", value1, value2, "stockmer");
            return (Criteria) this;
        }

        public Criteria andStockmerNotBetween(String value1, String value2) {
            addCriterion("stockmer not between", value1, value2, "stockmer");
            return (Criteria) this;
        }

        public Criteria andBuydateIsNull() {
            addCriterion("buydate is null");
            return (Criteria) this;
        }

        public Criteria andBuydateIsNotNull() {
            addCriterion("buydate is not null");
            return (Criteria) this;
        }

        public Criteria andBuydateEqualTo(Date value) {
            addCriterionForJDBCDate("buydate =", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateNotEqualTo(Date value) {
            addCriterionForJDBCDate("buydate <>", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateGreaterThan(Date value) {
            addCriterionForJDBCDate("buydate >", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("buydate >=", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateLessThan(Date value) {
            addCriterionForJDBCDate("buydate <", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("buydate <=", value, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateIn(List<Date> values) {
            addCriterionForJDBCDate("buydate in", values, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateNotIn(List<Date> values) {
            addCriterionForJDBCDate("buydate not in", values, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("buydate between", value1, value2, "buydate");
            return (Criteria) this;
        }

        public Criteria andBuydateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("buydate not between", value1, value2, "buydate");
            return (Criteria) this;
        }

        public Criteria andRepairtimeIsNull() {
            addCriterion("repairtime is null");
            return (Criteria) this;
        }

        public Criteria andRepairtimeIsNotNull() {
            addCriterion("repairtime is not null");
            return (Criteria) this;
        }

        public Criteria andRepairtimeEqualTo(Float value) {
            addCriterion("repairtime =", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeNotEqualTo(Float value) {
            addCriterion("repairtime <>", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeGreaterThan(Float value) {
            addCriterion("repairtime >", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeGreaterThanOrEqualTo(Float value) {
            addCriterion("repairtime >=", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeLessThan(Float value) {
            addCriterion("repairtime <", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeLessThanOrEqualTo(Float value) {
            addCriterion("repairtime <=", value, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeIn(List<Float> values) {
            addCriterion("repairtime in", values, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeNotIn(List<Float> values) {
            addCriterion("repairtime not in", values, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeBetween(Float value1, Float value2) {
            addCriterion("repairtime between", value1, value2, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRepairtimeNotBetween(Float value1, Float value2) {
            addCriterion("repairtime not between", value1, value2, "repairtime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeIsNull() {
            addCriterion("restricttime is null");
            return (Criteria) this;
        }

        public Criteria andRestricttimeIsNotNull() {
            addCriterion("restricttime is not null");
            return (Criteria) this;
        }

        public Criteria andRestricttimeEqualTo(Float value) {
            addCriterion("restricttime =", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeNotEqualTo(Float value) {
            addCriterion("restricttime <>", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeGreaterThan(Float value) {
            addCriterion("restricttime >", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeGreaterThanOrEqualTo(Float value) {
            addCriterion("restricttime >=", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeLessThan(Float value) {
            addCriterion("restricttime <", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeLessThanOrEqualTo(Float value) {
            addCriterion("restricttime <=", value, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeIn(List<Float> values) {
            addCriterion("restricttime in", values, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeNotIn(List<Float> values) {
            addCriterion("restricttime not in", values, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeBetween(Float value1, Float value2) {
            addCriterion("restricttime between", value1, value2, "restricttime");
            return (Criteria) this;
        }

        public Criteria andRestricttimeNotBetween(Float value1, Float value2) {
            addCriterion("restricttime not between", value1, value2, "restricttime");
            return (Criteria) this;
        }

        public Criteria andBuymoneyIsNull() {
            addCriterion("buymoney is null");
            return (Criteria) this;
        }

        public Criteria andBuymoneyIsNotNull() {
            addCriterion("buymoney is not null");
            return (Criteria) this;
        }

        public Criteria andBuymoneyEqualTo(Float value) {
            addCriterion("buymoney =", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyNotEqualTo(Float value) {
            addCriterion("buymoney <>", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyGreaterThan(Float value) {
            addCriterion("buymoney >", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyGreaterThanOrEqualTo(Float value) {
            addCriterion("buymoney >=", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyLessThan(Float value) {
            addCriterion("buymoney <", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyLessThanOrEqualTo(Float value) {
            addCriterion("buymoney <=", value, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyIn(List<Float> values) {
            addCriterion("buymoney in", values, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyNotIn(List<Float> values) {
            addCriterion("buymoney not in", values, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyBetween(Float value1, Float value2) {
            addCriterion("buymoney between", value1, value2, "buymoney");
            return (Criteria) this;
        }

        public Criteria andBuymoneyNotBetween(Float value1, Float value2) {
            addCriterion("buymoney not between", value1, value2, "buymoney");
            return (Criteria) this;
        }

        public Criteria andNumsIsNull() {
            addCriterion("nums is null");
            return (Criteria) this;
        }

        public Criteria andNumsIsNotNull() {
            addCriterion("nums is not null");
            return (Criteria) this;
        }

        public Criteria andNumsEqualTo(Integer value) {
            addCriterion("nums =", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsNotEqualTo(Integer value) {
            addCriterion("nums <>", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsGreaterThan(Integer value) {
            addCriterion("nums >", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsGreaterThanOrEqualTo(Integer value) {
            addCriterion("nums >=", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsLessThan(Integer value) {
            addCriterion("nums <", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsLessThanOrEqualTo(Integer value) {
            addCriterion("nums <=", value, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsIn(List<Integer> values) {
            addCriterion("nums in", values, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsNotIn(List<Integer> values) {
            addCriterion("nums not in", values, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsBetween(Integer value1, Integer value2) {
            addCriterion("nums between", value1, value2, "nums");
            return (Criteria) this;
        }

        public Criteria andNumsNotBetween(Integer value1, Integer value2) {
            addCriterion("nums not between", value1, value2, "nums");
            return (Criteria) this;
        }

        public Criteria andStatesIsNull() {
            addCriterion("states is null");
            return (Criteria) this;
        }

        public Criteria andStatesIsNotNull() {
            addCriterion("states is not null");
            return (Criteria) this;
        }

        public Criteria andStatesEqualTo(String value) {
            addCriterion("states =", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesNotEqualTo(String value) {
            addCriterion("states <>", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesGreaterThan(String value) {
            addCriterion("states >", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesGreaterThanOrEqualTo(String value) {
            addCriterion("states >=", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesLessThan(String value) {
            addCriterion("states <", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesLessThanOrEqualTo(String value) {
            addCriterion("states <=", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesLike(String value) {
            addCriterion("states like", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesNotLike(String value) {
            addCriterion("states not like", value, "states");
            return (Criteria) this;
        }

        public Criteria andStatesIn(List<String> values) {
            addCriterion("states in", values, "states");
            return (Criteria) this;
        }

        public Criteria andStatesNotIn(List<String> values) {
            addCriterion("states not in", values, "states");
            return (Criteria) this;
        }

        public Criteria andStatesBetween(String value1, String value2) {
            addCriterion("states between", value1, value2, "states");
            return (Criteria) this;
        }

        public Criteria andStatesNotBetween(String value1, String value2) {
            addCriterion("states not between", value1, value2, "states");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}